import request from '@/utils/request'

const Api = {
  listCreat: '/frontend/review_definition/create_list',
  tableFinds: '/frontend/ReviewList/finds',
  listEdit: '/frontend/ReviewList/edit',
  listChildFinds: '/frontend/ListChild/finds',
  listChildCreat: '/frontend/review_definition/create_list_child',
  listChildEdit: '/frontend/ListChild/edit'
}

export function listCreat (parameter) {
    return request({
      url: Api.listCreat,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      }
    })
}
export function tableFinds (parameter) {
  return request({
    url: Api.tableFinds,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function listEdit (parameter) {
  return request({
    url: Api.listEdit,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function listChildFinds (parameter) {
  return request({
    url: Api.listChildFinds,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function listChildCreat (parameter) {
  return request({
    url: Api.listChildCreat,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
export function listChildEdit (parameter) {
  return request({
    url: Api.listChildEdit,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
